<template>
    <Person v-if="isShow" />
</template>
<script lang="ts" setup name="App">
import { onMounted, ref } from 'vue'
import Person from "./componentsdemo2/Person.vue"

let isShow = ref(true)

//挂载完毕
onMounted(() => {
    console.log('mounted')
})
</script>